/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.action;

/**
 *
 * @author EnzoZhong
 */
public interface CrudBaseApi<Type> {

        /**
         *
         */
        String CREATE = "/create";
        /**
         *
         */
        String READ_ALL = "/readAll";
        /**
         *
         */
        String READ_BY_ID = "/readById";
        /**
         *
         */
        String READ_SON_BY_ID = "/readSonById";
        /**
         *
         */
        String UPDATE = "/update";
        /**
         *
         */
        String DELETE = "/delete";
        //状态
        /**
         *
         */
        String SUCCESS = "成功";
        /**
         *
         */
        String FAIL = "失败";

        Type create ( Type type );

        Type read ( Type type );

        Type update ( Type type );

        Type delete ( Type type );
}
